package cn.edu.sgu.www.mhxysy.service.partner.impl;

import cn.edu.sgu.www.mhxysy.entity.partner.PartnerType;
import cn.edu.sgu.www.mhxysy.mapper.partner.PartnerTypeMapper;
import cn.edu.sgu.www.mhxysy.service.partner.PartnerTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class PartnerTypeServiceImpl implements PartnerTypeService {

    private final PartnerTypeMapper partnerTypeMapper;

    @Autowired
    public PartnerTypeServiceImpl(PartnerTypeMapper partnerTypeMapper) {
        this.partnerTypeMapper = partnerTypeMapper;
    }

    @Override
    public List<PartnerType> selectAll() {
        return partnerTypeMapper.selectList(null);
    }

    @Override
    public PartnerType selectById(Integer id) {
        return partnerTypeMapper.selectById(id);
    }

}